package com.zhuannimei.utility;

import android.app.Activity;

import com.xuxihong1.Dianle;
import com.xxhong.znm.AdManager;
import com.xxhong.znm.offers.OffersManager;
import com.zhuannimei.GlobalApplication;

public class AdUtil {
	public static void regAd(Activity activity){
		Dianle.initDianleContext(activity, "ed738504692dbaec287dfd8ff9853020");
		Dianle.setCustomActivity("com.zhuannimei.ui.ad.MyView");
		Dianle.setCustomService("com.zhuannimei.ui.ad.MyService");
		//test --- 测试代码
		AdManager.getInstance(GlobalApplication.mContext).init("473a6cc44a32b2dc",
				"287385a131da7356", false);
		// 如果使用积分广告，请务必调用积分广告的初始化接口:
		OffersManager.getInstance(GlobalApplication.mContext).onAppLaunch();
	}
}
